home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Developers / NeoPersist 3.0.8 folder / NeoIncludes / Macintosh / PowerPlant / CNeoAppPP.h next >
Encoding:
C/C++ Source or Header  |  1994-07-26  |  1.4 KB  |  51 lines  |  [TEXT/KAHL]

  1. /*****
  2.  * CNeoAppPP.h
  3.  *
  4.  *    Application class for a PowerPlant -based application.
  5.  *  Copyright © 1992-1993 NeoLogic Systems.  All rights reserved.
  6.  *
  7.  *****/
  8. #pragma once            /* Include this file only once */
  9.  
  10. #include "NeoTypes.h"
  11. #include CNeoAppH
  12. #include "LBroadcaster.h"
  13.  
  14. class CNeoDoc;
  15. class LList;
  16.  
  17. //---------------------- PowerPlant Application ---------------------------------
  18. class CNeoAppPP : public CNeoApp, public LBroadcaster {
  19. public:
  20.                         CNeoAppPP(const OSType aSignature, const OSType aType);
  21.  
  22.                         /** Window Methods **/
  23.     static void            HideWindow(CNeoWindowBase *aWindow);
  24.     static void            MoveWindow(CNeoWindowBase *aWindow, const Rect *aBounds, const Boolean aRedraw);
  25.     static void            ShowWindow(CNeoWindowBase *aWindow, const Boolean aUpdateState, const Boolean aRedraw);
  26.  
  27.                         /** Chore Methods **/
  28.     virtual void        addChore(CNeoChore *aChore);
  29.     virtual void        doChores(void);
  30.     virtual void        removeChore(CNeoChore *aChore);
  31.     virtual void        UseIdleTime(const EventRecord &aEvent);
  32.  
  33.                         /** Document Management Methods **/
  34.     virtual CNeoDoc    *    createDocument(void) = 0;
  35.  
  36.                         /** PowerPlant-specific Methods **/
  37.     virtual void        ChooseDocument(void);
  38.     virtual LModelObject *
  39.                         MakeNewDocument(void);
  40.     virtual void        OpenDocument(FSSpec *aSpec);
  41.     virtual void        StartUp(void);
  42.  
  43. protected:
  44.     LList *                fChores;
  45.     CNeoDocPP *            fDocument;
  46.  
  47. public:
  48.     static CNeoAppPP *    FApplication;
  49.     static OSType        FFileType;
  50. };
  51.